#ifndef TRANS_H
#define TRANS_h

typedef struct option {
	int (*)
};

typedef struct Trans {
	char version[12];	//trans/1.0
	union {
		struct {
			char method[8];		//POST or GET
			char data_type[32];	//url or url?n=10
		};
		struct {
			int response_code;
			char tip[32];
		};
	};
	int content_length;
	char content_encoding[16];
	struct {
		char type[16];
		char charset[16];
	}content_type;
	struct {
		int sockfd;
	}sock;
	void *data;
}TRANS;

typedef struct Transm {
	int trans_num;
	TRANS **transs;
	int epoll_fd;
}TRANSM;

typedef enum {
	TRANS_OK = 0,
}TRANScode;

typedef enum {
}TRANSMcode;

#endif
